package com.yaodian100.ec.activity.entity;

import java.io.File;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yaodian100.core.common.entity.BaseEntity;

@Entity
@Table(name = "EC_ACTIVITY_BLOCK_BANNER")
public class ActivityPageBlockBanner extends BaseEntity {
	private static final long serialVersionUID = 912037470569356396L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_activity_block_banner")
	@SequenceGenerator(name = "seq_ec_activity_block_banner", sequenceName = "SEQ_EC_ACTIVITY_BLOCK_BANNER")
	@Column(name = "ID")
	private Long id;
	
	@Column(name = "BLOCK_ID")
	private Long blockId;
	
	@Column(name = "ITEM_NO")
	private Long itemNo;
	
	@Column(name = "IMAGE_PATH")
	private String imagePath;
	
	@Column(name = "TARGET_URL")
	private String targetUrl;
	
	@Transient
	private File bannerImage;
	@Transient
	private String bannerImageContentType;
	@Transient
	private String bannerImageFileName;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getBlockId() {
		return blockId;
	}

	public void setBlockId(Long blockId) {
		this.blockId = blockId;
	}

	public Long getItemNo() {
		return itemNo;
	}

	public void setItemNo(Long itemNo) {
		this.itemNo = itemNo;
	}

	

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public String getTargetUrl() {
		return targetUrl;
	}

	public void setTargetUrl(String targetUrl) {
		this.targetUrl = targetUrl;
	}

	public File getBannerImage() {
		return bannerImage;
	}

	public void setBannerImage(File bannerImage) {
		this.bannerImage = bannerImage;
	}

	public String getBannerImageContentType() {
		return bannerImageContentType;
	}

	public void setBannerImageContentType(String bannerImageContentType) {
		this.bannerImageContentType = bannerImageContentType;
	}

	public String getBannerImageFileName() {
		return bannerImageFileName;
	}

	public void setBannerImageFileName(String bannerImageFileName) {
		this.bannerImageFileName = bannerImageFileName;
	}

	
	
}
